<template>
  <el-form label-width="100px">
    <CommonProps />
    <el-form-item label="数值精度">
      <el-input-number v-model="fs.getProps().precision" controls-position="right" />
    </el-form-item>
    <el-form-item label="最大值">
      <el-input-number v-model="fs.getProps().max" :precision="fs.getProps().precision" controls-position="right" />
    </el-form-item>
    <el-form-item label="最小值">
      <el-input-number v-model="fs.getProps().min" :precision="fs.getProps().precision" controls-position="right" />
    </el-form-item>
    <el-form-item label="步长">
      <el-input-number v-model="fs.getProps().step" controls-position="right" />
    </el-form-item>
    <el-form-item label="按钮位置">
      <el-radio-group v-model="fs.getProps().controlsPosition" size="small">
        <el-radio-button label="">两端</el-radio-button>
        <el-radio-button label="right">右侧</el-radio-button>
      </el-radio-group>
    </el-form-item>
    <el-form-item label="显示按钮">
      <el-switch v-model="fs.getProps().controls" />
    </el-form-item>
    <CommonPropsTwo />
  </el-form>
</template>

<script setup lang="ts">
import CommonProps from '../../common-props/Props.vue'
import CommonPropsTwo from '../../common-props/PropsTwo.vue'
import { ElForm, ElFormItem, ElSwitch, ElInputNumber, ElRadioButton, ElRadioGroup } from 'element-plus'
import { useFlowStore } from '@/stores/flow'

const fs = useFlowStore()
</script>

<style lang="scss" scoped></style>
